﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.IRepository.SystemSettings.InstituTions;
using SystemCenterSoa.PoModel.SystemSettings.InstituTions;

namespace SystemCenterSoa.Service.SystemSettings.InstituTions
{
    public class InterviewService : BaseService
    {
        private IInterviewRepository _interviewRepository;
        public InterviewService(IInterviewRepository interviewRepository)
        {
            _interviewRepository = interviewRepository;
        }
        public List<DepartmentOfManagementPo> BindDep()
        {
            return _interviewRepository.BindDep();
        }
        public PagerResult<InterviewManagementPo> SearchPage(SearchModel searchModel)
        {
            return _interviewRepository.SearchPage(searchModel);
        }
        public bool InterMentAdd(InterviewManagementPo view)
        {
            return _interviewRepository.InterMentAdd(view);
        }
        public InterviewManagementPo GetInterMentById(int id)
        {
            return _interviewRepository.GetInterMentById(id);
        }
        public bool InterMentUpdate(InterviewManagementPo view)
        {
            return _interviewRepository.InterMentUpdate(view);
        }
        public bool InterMentDelete(int id)
        {
            return _interviewRepository.InterMentDelete(id);
        }
    }
}
